import { Outlet } from 'react-router-dom'
import { Layout } from 'antd'
import TopHeader from '@/components/TopHeader'
import SideMenu from '@/components/SideMenu'
const { Content } = Layout;

export default function NewsSandBox() {
  return (
    <Layout>
      {/* 侧边栏 */}
      <SideMenu />
      <Layout className="site-layout">
        {/* 头部 */}
        <TopHeader />
        {/* 主体区域 */}
        <Content
          className="site-layout-background"
          style={{
            margin: '24px 16px',
            padding: 24,
            minHeight: 280,
            overflow: 'auto'
          }}
        >
          <Outlet />
        </Content>
      </Layout>
    </Layout>
  )
}